package com.sky.mapper;

import com.sky.entity.SetmealDish;
import com.sky.vo.DishItemVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @program: sky-take-out
 * @description:
 * @author: fmp
 * @create: 2023-04-09 15:10
 * @Version 1.0
 **/
@Mapper
public interface SetMealDishMapper {
   //根据id查询当前是否关联套餐
   Long selectedById(@Param("ids") List<Long> ids);
   //增加菜品套餐关联表
   void InsertSetmealDishes(@Param("setmealDishes") List<SetmealDish> setmealDishes);
   //根据id删除
   void deleteByid(@Param("ids") List<Long> ids);
   //根据dishId查询
   List<SetmealDish> selectByDishId(@Param("setmealId") Long setmealId);

   void deleteBysetmealId(@Param("setmealId") Long setmealId);

    List<DishItemVO> selectSetmealDishBySetmealId(Long setmealId);
}
